package com.dengc.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class SysUser implements Serializable {

    private Integer id;//用户编号
    private String account;//账号
    private String realName;//真实姓名
    private String password;//密码
    private Integer sex;//性别（0-女，1-男）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;//出生日期
    private String tel;//手机号
    private String address;//用户地址
    private Integer roleId;//角色编号
    private Integer createdUserId;//创建者
    private Date createTime;//创建时间

    private String photo;
    private String rolename;//角色名称

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getRolename() {
        return rolename;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public String getAccount() {
        return account;
    }

    public String getRealName() {
        return realName;
    }

    public String getPassword() {
        return password;
    }

    public Integer getSex() {
        return sex;
    }

    public Date getBirth() {
        return birth;
    }

    public String getTel() {
        return tel;
    }

    public String getAddress() {
        return address;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public Integer getCreatedUserId() {
        return createdUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }
}
